﻿using LaserAutoTest.Application.Models;
using LaserAutoTest.Application.Models.PortModels;
using LaserAutoTest.Common;
using System.Collections.Concurrent;
using System.Windows;

namespace LaserAutoTest.Application
{
    public class GlobalValues
    {
        public static UserModel UserInfo { get; set; }
        public static MainWindowModel MainWindowSize { get; set; }
        public static ConcurrentDictionary<string, PortModel> Ports { get; set; } = new ConcurrentDictionary<string, PortModel>();

        public static SocketTcpServer TcpServer { get; set; }


        public static bool MessageBoxShow(string str)
        {
            return MessageBox.Show(str, "警告", MessageBoxButton.YesNo, MessageBoxImage.Warning)==MessageBoxResult.Yes;
        }
    }
}
